﻿using BlogDemo.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BlogDemo.Core.Domain
{
    public class Blog : EntityBase<int>
    {
        [ConcurrencyCheck]
        public string Name { get; set; }
        public string Url { get; set; }
        public string Description { get; set; }
        [Timestamp]
        public byte[] Timestamp { get; set; }

        public BlogImage Image { get; set; }

        public virtual ICollection<Post> Posts { get; set; }
    }
}
